package com.desaysv.dragrvitem.item;

import com.desaysv.dragrvitem.adapter.holder.BaseViewHolder;

/**
 * 隐藏域的录入Item
 *
 * @see <a href="https://juejin.cn/post/6844903472601497614"/>
 * @see <a href="https://github.com/free46000/MultiItem"/>
 */
public class HiddenItemInput extends BaseItemInput {
    protected Object value;

    /**
     * @param key   item对应key
     * @param value item对应value
     */
    public HiddenItemInput(String key, Object value) {
        super(key);
        this.value = value;
    }

    @Override
    public void onBindViewHolder(BaseViewHolder holder, Object o) {

    }

    @Override
    protected int getItemLayoutId() {
        return 0;
    }

    @Override
    public Object getValue() {
        return value;
    }

    @Override
    protected void initInputView(BaseViewHolder holder) {

    }
}
